

let user1 = {
    name:'王昭君'
}

let  User = {
    name:'user',
    show(){
        console.log(this.name)
    }
}

Object.setPrototypeOf(user1,User)

user1.show() //王昭君
// 设置user1原型对象是User，但调用show方法的时候，this指向仍然是user1